package hsfslow2fast;

import ioc.entity.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author CBeann
 * @create 2020-02-20 16:29
 */
@EnableAspectJAutoProxy
@Configuration
public class IOCConfig {

    @Bean(initMethod = "init")
    public Hsfconsumer hsfconsumer(){
        return new Hsfconsumer();
    }

//    @Bean(initMethod = "init")
//    public Hsfconsumer2 hsfconsumer2(){
//        return new Hsfconsumer2();
//    }

    @Bean
    public LogAspects logAspects(){
        return new LogAspects();
    }
    @Bean
    public Student student(){
        return new Student();
    }

}
